package com.qidianit.mes.sys.mapper;

import com.qidianit.mes.pojo.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description:
 * @Author: YanJiRan
 * @Date: 2025/9/16 - 下午7:39
 */
public interface SupplierMapper {
    /**
     *
     * @param supplier
     * @return
     */
    List<Supplier> selectList(Supplier supplier);

    /**
     *
     * @param code
     * @return
     */
    Supplier selectByCode(String code);

    /**
     *
     * @param supplier
     * @return
     */
    int saveSupplier(Supplier supplier);

    /**
     *
     * @param supplier
     * @return
     */
    int updateById(Supplier supplier);

    /**
     *
     * @param id
     * @return
     */
    int deleteById(Long id);

    /**
     *
     * @param ids
     * @return
     */
    int batchDelete(@Param("ids") Long [] ids);
}
